//
//  CollectionViewCell.m
//  0000327App
//
//  Created by user on 16/3/27.
//  Copyright © 2016年 MoreMoney. All rights reserved.
//
#import "UIImageView+WebCache.h"
#import "XBUserModel.h"
#import "XBUserCollectionViewCell.h"

@interface XBUserCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageViewm;
@property (weak, nonatomic) IBOutlet UILabel *nameLabelm;

@end

@implementation XBUserCollectionViewCell
- (void)setModel:(XBUserModel *)model
{
    _model = model;
    NSURL *url = [NSURL URLWithString:model.imageUrl];

    [self.imageViewm sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"yellow"]];
    self.nameLabelm.text = model.name;
}
- (void)awakeFromNib {
    // Initialization code
}

@end
